//import java.util.*;
//public class Main {
//    public static boolean checkWon(int[][] board) {
//        for (int i = 0; i < board.length; i++) {
//            if (board[i][0] + board[i][1] + board[i][2] == 3) {
//                return true;
//            }
//        }
//        for (int i = 0; i < board[0].length; i++) {
//            if (board[0][i] + board[1][i] + board[2][i] == 3) {
//                return true;
//            }
//        }
//        if (board[0][0]+board[1][1]+board[2][2]==3) return true;
//        if (board[0][2]+board[1][1]+board[2][0]==3) return true;
//        return false;
//    }
//    public static void main(String[] args) {
//        Scanner sc=new Scanner(System.in);
//        int [][]arr=new int [3][3];
//        for(int i=0;i<3;i++){
//            for(int j=0;j<3;j++){
//                arr[i][j]=sc.nextInt();
//            }
//        }
//        boolean bo=checkWon(arr);
//        System.out.println(bo);
//    }
//}


import java.util.Scanner;
public class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        String password= scan.next();
        int score = 0;
        int len =password.length();
        if(len<=4){
            score+=5;
        }else if(len>=5&&len<=7){
            score+=10;
        }else if(len>=8){
            score+=25;
        }
        int number=0;
        int upper=0;
        int lower=0;
        int other =0;
        for(int i=0;i<len;i++){
            char ch = password.charAt(i);
            if(ch>='0'&&ch<='9'){
                number++;
            }else if(ch>='A'&&ch<='Z'){
                upper=1;
            }else if(ch>='a'&&ch<='z'){
                lower=1;
            }else{
                other++;
            }
        }
        if(number==1){
            score+=10;
        }else if(number>1){
            score+=20;
        }
        int word=upper+lower;
        if(word==1){
            score+=10;
        }else if(word>1){
            score+=20;
        }
        if(other==1){
            score+=10;
        }else if(other>1){
            score+=25;
        }
        if(word==2&&number>0&&other>0){
            score+=5;
        }else if(word==1&&number>0&&other>0){
            score+=3;
        }else if(word>0&&number>0){
            score+=2;
        }
        if(score>=90){
            System.out.println("VERY_SECURE");
        }else if(score>=80){
            System.out.println("SECURE");
        }else if(score>=70){
            System.out.println("VERY_STRONG");
        }else if(score>=60){
            System.out.println("STRONG");
        }else if(score>=50){
            System.out.println("AVERAGE");
        }else if(score>=25){
            System.out.println("WEAK");
        }else{
            System.out.println("VERY_WEAK");
        }

    }
}
